/*
【例5.3】while和do...while的比较

do...while
*/

#include<stdio.h>
int main()
{
    int i,sum=0;
    printf("pleas enter i,i=?");
    scanf("%d",&i);
    do
    {
        sum=sum+i;
        i++;
    }
    while(i<=10);
    printf("sum=%d\n",sum);
    return 0;
}